package com.minivision.fdiot.service;

import java.util.List;

import org.springframework.data.domain.Page;

import com.minivision.fdiot.entity.MqttLog;
import com.minivision.fdiot.rest.param.MqttLogParam;
import com.minivision.fdiot.rest.param.QueryMqttLogParam;

public interface MqttLogService {

  MqttLog create(MqttLog log);
  
  MqttLog find(Long id);
  
  void delete(Long id);
  
  Page<MqttLog> findByPage(QueryMqttLogParam param);
  
  Page<MqttLog> findByCreateTimeBetween(MqttLogParam param) throws Exception;
  
  List<MqttLog> findByDeviceSn(String deviceSn);

  List<MqttLog> findByDeviceSnAndCmdCode(String deviceSn, int cmdCode);
  
}
